package design.patterns.creational.singleton;

//import design.patterns.creational.singleton.lazy.v4.LazySingleton;
import design.patterns.creational.singleton.hungry.HungrySingleton;
/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/1 10:53
 */
public class MyThread extends  Thread {

    @Override
    public void run() {
//        System.out.println(Thread.currentThread().getName()+"-"+LazySingleton.getInstance());
        System.out.println(Thread.currentThread().getName()+"-"+HungrySingleton.getInstance());

    }
}
